<?php
/**
* @package controller
* @file indexController.php
* @date 19.08.2009
* @version 1.0
* @copyright Corjanta
* @author 
* @todo phpDoc comments
*/
     require_once 'Zend/Controller/Action.php';

class pagination_indexController extends Cms_Controller_Action
{
	
	public function init()
	{
		//Zend_Layout::getMvcInstance()->setLayoutPath('../app_mvc/index/admin/layouts');
		$this->view->siteTitle = 'Corjanta - Registration';
		
		
	}
	public function indexAction()    
	{ 
			//$memid = $_SESSION["sess_memberid"];
			$memid=35;
			//echo $memid;exit;
			$total_pages = Doctrine::getTable('Expressions')->getDetailsById1($memid);
			$total_pages = $total_pages[numCount];
		    //echo $result[numCount];exit;	
			$limit=2;
			$page="";
			if($page) 
		    $start = ($page - 1) * $limit; 			//first item to display on this page
	        else
		    $start = 0;			
            $result = Doctrine::getTable('Expressions')->getDetailsById($memid,1,8);			
		    $this->view->getExpressions = $result;
	}
	
	
}
?>
